
// 引入请求拦截
import { requestInterceptors } from './requestInterceptors.js'
// 引入响应拦截
import { responseInterceptors } from './responseInterceptors.js'
// 初始化请求配置
const baseURL = process.env.config.baseUrl
console.log(baseURL);
export const Request = ()=>{
	uni.$uv.http.setConfig((defaultConfig) => {
	    /* defaultConfig 为默认全局配置 */
	    defaultConfig.baseURL = baseURL /* 根域名 */
		defaultConfig.timeout = 60000
		
	    return defaultConfig
	})
	requestInterceptors();
	responseInterceptors();
}
